/*    */ package server.maps;
/*    */ 
/*    */ import client.MapleCharacter;
/*    */ import client.MapleClient;
/*    */ import java.awt.Point;
/*    */ import tools.MaplePacketCreator;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MapleLove
/*    */   extends MapleMapObject
/*    */ {
/*    */   private final Point pos;
/*    */   private final MapleCharacter owner;
/*    */   private final String text;
/*    */   private final int ft;
/*    */   private final int itemid;
/*    */   
/*    */   public MapleLove(MapleCharacter owner, Point pos, int ft, String text, int itemid) {
/* 25 */     this.owner = owner;
/* 26 */     this.pos = pos;
/* 27 */     this.text = text;
/* 28 */     this.ft = ft;
/* 29 */     this.itemid = itemid;
/*    */   }
/*    */ 
/*    */   
/*    */   public MapleMapObjectType getType() {
/* 34 */     return MapleMapObjectType.LOVE;
/*    */   }
/*    */ 
/*    */   
/*    */   public Point getPosition() {
/* 39 */     return this.pos.getLocation();
/*    */   }
/*    */ 
/*    */   
/*    */   public void setPosition(Point position) {
/* 44 */     throw new UnsupportedOperationException();
/*    */   }
/*    */   
/*    */   public MapleCharacter getOwner() {
/* 48 */     return this.owner;
/*    */   }
/*    */   
/*    */   public int getItemId() {
/* 52 */     return this.itemid;
/*    */   }
/*    */ 
/*    */   
/*    */   public void sendSpawnData(MapleClient c) {
/* 57 */     c.announce(MaplePacketCreator.spawnLove(getObjectId(), this.itemid, this.owner.getName(), this.text, this.pos, this.ft));
/*    */   }
/*    */ 
/*    */   
/*    */   public void sendDestroyData(MapleClient c) {
/* 62 */     c.announce(MaplePacketCreator.removeLove(getObjectId(), this.itemid));
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\maps\MapleLove.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */